package com.repository;

import com.entity.ElderMonthlyFinance;
import com.entity.FinanceFlow;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FinanceFlowRepository extends JpaRepository<FinanceFlow, Integer> {
    List<FinanceFlow> findAllByFinanceAccountIdOrderByFlowDateDesc(Integer financeAccountId);
}